package com.zhentao.mapper;

import com.zhentao.domain.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 86133
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2024-08-20 17:17:50
* @Entity com.zhentao.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("select * from sys_user")
    List<SysUser> list();
    @Insert("insert into sys_user(phone) values(#{phone})")
    int add(String phone);
    @Delete("delete from sys_user where id=#{id}")
    int delete(Integer id);
    @Update("update sys_user set nickname=#{nickname} where id=#{id}")
    int update(SysUser sysUser);
}




